﻿using UnityEngine;
using System.Collections;

public class Flyer_small_Controller : MonoBehaviour {

    public float speed = 100;

    private Vector3 mDir = Vector3.down;

    void Awake()
    {
    }
	
	// Update is called once per frame
	void Update () {
        Vector3 pos = transform.localPosition+ Time.deltaTime * speed * mDir;
        if (pos.y < -130)
            Destroy(gameObject);
        transform.localPosition = pos;
	}
}
